﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Zhuang.Utility.Web.JSON;
using Zhuang.WebSite.Areas.SystemManagement.Models;
using Zhuang.WebSite.BLL.SystemManagement;
namespace Zhuang.WebSite.Areas.SystemManagement.Controllers
{
    public class IndexController : BaseController
    {
        //
        // GET: /SystemManagement/Index/

        public ActionResult Index()
        {
            Sys_MenuBLL menu = new Sys_MenuBLL();
            //ViewData["systemMenu"] = menu.GetMenusJson(-1, 0);
            ViewData["systemMenu"] = menu.GetUserMenus(App_Code.Common.SessionHelper.GetUser().UserId.ToString());

            return View(App_Code.Common.SessionHelper.GetUser());
        }
        
        public ActionResult Welcome()
        {
            return View();
        }
    }
}
